package handlers

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

// Dashboard 首页
func Dashboard(c *gin.Context) {
	c.HTML(http.StatusOK, "dashboard.html", gin.H{})
}

// ProjectDetailPage 项目详情页
func ProjectDetailPage(c *gin.Context) {
	c.HTML(http.StatusOK, "project_detail.html", gin.H{
		"project_id": c.Param("id"),
	})
}

// ItemDetailPage Item详情页
func ItemDetailPage(c *gin.Context) {
	c.HTML(http.StatusOK, "item_detail.html", gin.H{
		"item_id": c.Param("id"),
	})
}

// NewItemPage 新建Item页面
func NewItemPage(c *gin.Context) {
	c.HTML(http.StatusOK, "new_item.html", gin.H{
		"project_id": c.Query("project_id"),
		"type":       c.Query("type"),
	})
}

// EditItemPage 编辑Item页面
func EditItemPage(c *gin.Context) {
	c.HTML(http.StatusOK, "edit_item.html", gin.H{
		"item_id": c.Param("id"),
	})
}

// TestPastePage 测试图片粘贴功能
func TestPastePage(c *gin.Context) {
	c.HTML(http.StatusOK, "test_paste.html", gin.H{})
}

// LoginPage已在auth.go中定义，这里不需要重复定义
